import { Moment } from 'moment'

export enum ProjectStatus {
  BOARD = 'board',
  COMPLETED = 'completed',
  CURRENT = 'current',
  MESSAGE = 'message',
  NOTES = 'notes',
}

export interface Project {
  deadlineDate?: Moment
  id?: string
  startDate?: Moment
  status: ProjectStatus
  tasksIdsList?: string[] //id задач
  teamId?: string //id команды
  text?: string
  title: string
}

export interface ResponseProject extends Omit<Project, 'id'> {
  id: string
  tasks?: ResponseProject[]
}
